﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WebAnalyser.Api;

namespace WebAnalyser.CSS
{
    /// <summary>
    /// Logique d'interaction pour OptionsControl.xaml
    /// </summary>
    public partial class OptionsControl : UserControl
    {
        public OptionsControl()
        {
            InitializeComponent();
        }

        private void proxyCheckBox_Click(object sender, RoutedEventArgs e)
        {
            if (proxyCheckBox.IsChecked == true)
            {
                groupBox1.IsEnabled = true;
            }
            else
            {
                groupBox1.IsEnabled = false;
            }
            Events.Instance.TriggerChangesPending();
        }

        private void TextChanged(object sender, TextChangedEventArgs e)
        {
            Events.Instance.TriggerChangesPending();
        }

        private void passwordBox1_PasswordChanged(object sender, RoutedEventArgs e)
        {
            Events.Instance.TriggerChangesPending();
        }
    }
}
